<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title>CSS Test: 'page' applies to blocks</title>
  <link rel="author" title="Tom Clancy" href="mailto:tclancy@revenution.com"/>
  <link rel="help" href="http://www.w3.org/TR/css3-page/#using-named-pages"/>
  <meta name="flags" content="paged" />
  <meta name="assert" content="Styles set by the page property will only affect block elements"/>
  <style type="text/css"><![CDATA[
  	@page {
		size: portrait;
		margin: 7%;
	}
	@page rotated { 
		size: landscape;
	}
	div, span { page: rotated }
  ]]></style>
 </head>
 <body>
	<div>This paragraph should be printed in landscape layout (the long sides of the page should be top and bottom).</div>
	<p><span>This paragraph should be printed on a second page in portrait layout (the short sides of the page should be top and bottom).</span></p>
 </body>
</html>